<?php
//屏蔽IP
$disallow_ip=array('60.28.205.234','60.28.194.197','60.28.205.237','218.75.46.50','219.234.88.97', '59.40.182.189');
if (in_array(getip(), $disallow_ip)){
	exit('sorry');
}

session_start();
ini_set('display_errors', '1');

$CFG['description']='记录我的收入支出情况，走到哪，记到哪!';
$CFG['title']='Money';

//---- 数据库设置
$CFG['db']['host']='localhost';
$CFG['db']['user']='root';
$CFG['db']['pwd']='123456';
$CFG['db']['name']='money';
$CFG['db']['port']='3306';
$CFG['db']['err_log'] = 1; //1: 保存错误sql日志 0: 不保存
$CFG['db']['err_log_file'] = 'log/mysql_err.txt';

//----- 错误处理设置
$CFG['err']['mode'] = 0; //错误信息显示方式: 0: 默认调试信息 , 1: 转到$CFG['err']['page'] , 2: 不显示错误
$CFG['err']['page'] = 'error.php';
$CFG['err']['msg'] = 'OH NO!你访问的页面好像出现了一些故障！';

//应用的数据表
$CFG['tabs']['user'] = 'user';
?>